<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html>
<head>

<title>部门调动员工报表</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<a href="${pageContext.request.contextPath}/index.jsp">返回</a>
	<br />
	<p>部门调动员工报表</p>
	<br />
	<form
	action="${pageContext.request.contextPath}/ReportManagementServlet"
	method="post"> 开始日期
	<input name="startDate" type="date" /> 结束日期<input name="endDate"
			type="date" /> <input name="method" type="hidden"
			value="departmentalMob"> <input type="submit" />
	</form>
	<c:if test="${not empty departmentalMobList }">
		<table border="1">
			<tr>
				<td>序号</td>
				<td>原部门名称</td>
				<td>新部门名称</td>
				<td>姓名</td>
				<td>性别</td>
				<td>调动日期</td>
				<td>调动原因</td>
			</tr>
			<c:forEach var="departmentalMob" items="${departmentalMobList}" varStatus="status">
			<tr>
				<td>${status.index + 1}</td>
				<td>${departmentalMob.oldDepartment.d_name}</td>
				<td>${departmentalMob.newDepartment.d_name }</td>
				<td>${departmentalMob.staff.s_name }</td>
				<td>
				<c:if test="${departmentalMob.staff.s_sex == 1}">男</c:if>
				<c:if test="${departmentalMob.staff.s_sex == 2}">女</c:if>
				</td>
				<td>${departmentalMob.td_date }</td>
				<td>${departmentalMob.td_reason }</td>
			</tr>
			</c:forEach>
		</table>
	</c:if>
  </body>
</html>
